using JNPF.Basics.Models;
using JNPF.Utils;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace JNPF.Basics.Logic
{
    /// <summary>
    /// 聊天内容
    /// 版 本：V3.0.0
    /// 版 权：引迈信息技术有限公司（https://www.jnpfsoft.com）
    /// 作 者：JNPF开发平台组
    /// 日 期：2019-07-24
    /// </summary>
    internal interface IMContentIService
    {
        /// <summary>
        /// 获取消息列表
        /// </summary>
        /// <param name="input">分页参数</param>
        /// <param name="sendUserId">发送者</param>
        /// <param name="receiveUserId">接收者</param>
        /// <returns></returns>
        Task<PageResult<IMContentEntity>> GetMessageList(string sendUserId, string receiveUserId, PageInput input);
        /// <summary>
        /// 获取未读列表
        /// </summary>
        /// <param name="receiveUserId">接收者</param>
        /// <returns></returns>
        Task<List<IMUnreadNumModel>> GetUnreadList(string receiveUserId);
        /// <summary>
        /// 获取未读消息
        /// </summary>
        /// <param name="receiveUserId">接收者</param>
        /// <returns></returns>
        Task<int> GetUnreadCount(string receiveUserId);
        /// <summary>
        /// 发送消息
        /// </summary>
        /// <param name="sendUserId">发送者</param>
        /// <param name="receiveUserId">接收者</param>
        /// <param name="message">消息内容</param>
        /// <param name="messageType">消息类型</param>
        /// <returns></returns>
        Task<int> SendMessage(string sendUserId, string receiveUserId, string message, string messageType);
        /// <summary>
        /// 设置已读
        /// </summary>
        /// <param name="sendUserId">发送者</param>
        /// <param name="receiveUserId">接收者</param>
        Task<int> ReadMessage(string sendUserId, string receiveUserId);
    }
}
